<?php if(!defined('FAMOUS_ROOT')) exit('Access Denied'); ?>
<!DOCTYPE HTML>
<html dir="ltr" lang="zh-CN">
<head>
<meta charset="UTF-8" />
<title><?=$title?></title>
<link href="/statics/admincp/css/login.css?rand=<?=VERSION?>" rel="stylesheet" type="text/css" />
<link href="/statics/common/css/dialog.css?rand=<?=VERSION?>" rel="stylesheet" type="text/css" />
</head>
<body onload="javascript:document.loginform.username.focus();" >
<div class="login" >
<div class="menus">
    	<div class="public"><a href="#" target="_blank">使用帮助</a><a href="#" target="_blank">联系开发者</a></div>
    </div>
    <div class="box png">
        <form action="/admin.php?mod=login&action=dologin"  method="post" name="loginform" onSubmit="return adminlogin();">
        <div class="header">
            <!--<h2 class="logo png"><a href="" target="_blank"></a></h2>-->
            <span class="alt">管理员登录</span>
        </div>
        <ul>
            <li><label>用户名</label><input name="username" id="username" type="text" class="text" value="" /></li>
            <li><label>密　码</label><input name="password" id="password" type="password" class="text" value="" /></li> 
            <li class="submits"><input class="submit" id="adminLogin" type="submit" value="登录" /></li>
        </ul>
        <div class="copyright">&copy; 2013 - 2020 
            
        </div>
        </form>
    </div>
    <div class="air-balloon ab-1 png"></div><div class="air-balloon ab-2 png"></div>
    <div class="footer"></div>
</div>
<script src="/statics/common/js/jquery.js?rand=<?=VERSION?>" type="text/javascript"></script>
<script src="/statics/common/js/dialog.js?rand=<?=VERSION?>" type="text/javascript"></script>

<!--[if lt IE 8]>
<script src="static/common/js/PIE.js?rand=<?=VERSION?>" type="text/javascript" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
    if (window.PIE && ( $.browser.version >= 6 && $.browser.version < 10 )){
        $('input.text,input.submit').each(function(){
            PIE.attach(this);
        });
    }
});
</script>
<![endif]-->

<!--[if IE 6]>
<script src="static/common/js/DD_belatedPNG.js?rand=<?=VERSION?>" type="text/javascript" type="text/javascript"></script>
<script>DD_belatedPNG.fix('.png')</script>
<![endif]-->

</body>
</html>

<script type="text/javascript">

function adminlogin(){	

var username = $('#username').val();
var password = $('#password').val();

if(!username || !password){
art.dialog({content:'用户或密码不能为空',title:'提示',ok:true});		
return false;
}

return true;
}
</script>